#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int a = 0;
	int j = 0;
	int flag = 0;
	for (a = 100; a <= 200; a++)
	{
		flag = 0;
		for (j = 2; j <= a - 1; j++)
		{
			if (a % j == 0)
			{
				flag = 1;
				break;
			}
		}
		if (flag == 0)
			printf("%d ", a);
	}
	return 0;
}